package com.lightdz.tshirtdz.model.entity;

import java.sql.Timestamp;
import java.util.Objects;

/**
 * @ Description：${description}
 * @ Author     ：zbl
 * @ Date       ：Created in 10:06 10/08/2018
 * @ Modified By：
 */

public class ShoppingCarEntity {
    private int tId;
    private String wxid;
    private long pid;
    private String pColor;
    private String pSize;
    private Integer pCount;
    private Timestamp createTime;
    private int status;
    private Timestamp updateTime;

    public int gettId() {
        return tId;
    }

    public void settId(int tId) {
        this.tId = tId;
    }

    public String getWxid() {
        return wxid;
    }

    public void setWxid(String wxid) {
        this.wxid = wxid;
    }

    public long getPid() {
        return pid;
    }

    public void setPid(long pid) {
        this.pid = pid;
    }

    public String getpColor() {
        return pColor;
    }

    public void setpColor(String pColor) {
        this.pColor = pColor;
    }

    public String getpSize() {
        return pSize;
    }

    public void setpSize(String pSize) {
        this.pSize = pSize;
    }

    public Integer getpCount() {
        return pCount;
    }

    public void setpCount(Integer pCount) {
        this.pCount = pCount;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ShoppingCarEntity that = (ShoppingCarEntity) o;
        return tId == that.tId &&
                pid == that.pid &&
                status == that.status &&
                Objects.equals(wxid, that.wxid) &&
                Objects.equals(pColor, that.pColor) &&
                Objects.equals(pSize, that.pSize) &&
                Objects.equals(pCount, that.pCount) &&
                Objects.equals(createTime, that.createTime) &&
                Objects.equals(updateTime, that.updateTime);
    }

    @Override
    public int hashCode() {

        return Objects.hash(tId, wxid, pid, pColor, pSize, pCount, createTime, status, updateTime);
    }
}
